As this is the very first exercise in this workshop, it is relatively easy and short. Its purpose is to get used to this exercise format and, more importantly, to install all necessary packages for this course.
Note: You can find the solutions for this exercise and all
other exercises in the ./solutions folder in the
repo/directory that contains the course materials. You can copy code
from these exercise files by clicking on the small blue clipboard icon
in the code boxes’ upper right corner.
And here comes our very first exercise (which is not very spatial…):
easypackages packages, which
can be installed with the command
install.packages("easypackages"). After loading the package
with library(easypackages) you can load and
install packages with the command
easypackages::packages("fancy_package_1", "fancy_package_2", ...).
easypackages::packages(
"dplyr",
"ggplot2",
"ggsn",
"haven",
"osmdata",
"OpenStreetMap",
"reticulate",
"sf",
"spatialreg",
"spatstat",
"sfdep",
"spdep",
"stars",
"terra",
"tmap",
"tmaptools",
"raster",
"StefanJuenger/z11"
)
## Lade nötiges Paket: haven
## Lade nötiges Paket: osmdata
## Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright
## Lade nötiges Paket: OpenStreetMap
## Please note that rgdal will be retired during October 2023,
## plan transition to sf/stars/terra functions using GDAL and PROJ
## at your earliest convenience.
## See https://r-spatial.org/r/2023/05/15/evolution4.html and https://github.com/r-spatial/evolution
## rgdal: version: 1.6-7, (SVN revision 1203)
## Geospatial Data Abstraction Library extensions to R successfully loaded
## Loaded GDAL runtime: GDAL 3.6.2, released 2023/01/02
## Path to GDAL shared files: C:/Users/stroppan/AppData/Local/R/win-library/4.3/rgdal/gdal
## GDAL does not use iconv for recoding strings.
## GDAL binary built with GEOS: TRUE
## Loaded PROJ runtime: Rel. 9.2.0, March 1st, 2023, [PJ_VERSION: 920]
## Path to PROJ shared files: C:/Users/stroppan/AppData/Local/R/win-library/4.3/rgdal/proj
## PROJ CDN enabled: FALSE
## Linking to sp version:1.6-1
## To mute warnings of possible GDAL/OSR exportToProj4() degradation,
## use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
## Lade nötiges Paket: spatialreg
## Lade nötiges Paket: Matrix
##
## Attache Paket: 'spatialreg'
## Die folgenden Objekte sind maskiert von 'package:spdep':
##
## get.ClusterOption, get.coresOption,
## get.mcOption, get.VerboseOption,
## get.ZeroPolicyOption, set.ClusterOption,
## set.coresOption, set.mcOption,
## set.VerboseOption, set.ZeroPolicyOption
## Lade nötiges Paket: z11
## All packages loaded successfully
That’s it. Please notify me if there are any issues with installing
the packages or, more generally, your R installation.
…oh, and if you got some time left: